<?php

/**
 *
 * Generates block with 
 * details about User Questions
 * This block will contain a list
 * of questions which is parsed by the
 * tplUquestions template
 *
 */
class tplUserQuestions extends StudyBuddy\Template\Template
{
	protected static function func(&$a){
		if($a['count'] != 1){
			$a['s'] = 's';
		}
	}

	protected static $vars = array(
	'count' => '',
	'label' => 'Question',
	'questions' => '',
	's' => '',
	'pagination' => '');

	protected static $tpl = '
	<div class="user_questions mt10">
	<span class="counter cb fl larger bold">%1$s %2$s%4$s</span>
		<div class="cb fl">
		%3$s
		</div> <!-- // uquestions -->
		<div class="qpages reveal hidden">%5$s</div>
	</div> 
	<!-- // user_tags  -->
	';
}
